
{extend name='public/window' /}

{block name="content"}
<style>
    .layui-upload-drag {
        position: relative;
        padding: 10px;
        border: 1px dashed #e2e2e2;
        background-color: #fff;
        text-align: center;
        cursor: pointer;
        color: #999;
        border-radius: 50%;
    }
</style>
<div class="layui-fluid">
    <div class="layui-card">

        <div class="layui-card-body" style="padding: 15px;">
            <form class="layui-form" action="" lay-filter="form">
                {if isset($info.id)}
                <input type="hidden" name="id" value="{$info.id}">
                {/if}
                <input type="hidden" name="__token__" id="token" value="{:token()}"/>
                <!-- 上面的不能动 -->

                    <div class="layui-row layui-col-space15">
                        <div class="layui-col-md12">
                            <div class="layui-card">
                                <div class="layui-card-header">订单信息</div>
                                <div class="layui-card-body">
                                    <div class="layui-row layui-col-space15">
                                        <div class="layui-col-md3">
                                            订单号:{$info.order_no}
                                        </div>
                                        <div class="layui-col-md3">
                                            状态：<?php
                                            switch($info['pay_status']){
                                              case 0:echo '未付款';break;
                                              case 1:echo '支付成功';break;
                                              case -1:echo '已退款';break;
                                            }
                                            ?>
                                        </div>
                                        <div class="layui-col-md3">
                                            支付时间: <?php echo date("Y-m-d H:i:s", $info['pay_time'])  ?>
                                        </div>
                                        <div class="layui-col-md3">
                                            <div class="layui-row">
                                                <div class="layui-col-xs6">
                                                    <button type="button" class="layui-btn">审核成功</button>
                                                </div>
                                                <div class="layui-col-xs6">
                                                    <button type="button" class="layui-btn layui-btn-danger">审核失败</button>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="layui-row layui-col-space15">
                                        <div class="layui-col-md3">
                                            审核时间: <?php echo date("Y-m-d H:i:s", $info['verify_time'])  ?>
                                        </div>
                                        <div class="layui-col-md3">
                                            退费时间： <?php echo date("Y-m-d H:i:s", $info['refund_time'])  ?>
                                        </div>
                                        <div class="layui-col-md3"><!-- 占位元素 --></div>
                                        <div class="layui-col-md3">
                                            <div class="layui-row">
                                                <div class="layui-col-xs6">
                                                    <span style="color: #8D8D8D">审核状态：</span><br>
                                                    <span style="font-size: 16px">
                                                        <?php echo $info['verify_status'] == 1? '已审核' : '未审核'; ?>
                                                    </span>
                                                </div>
                                                <div class="layui-col-xs6">
                                                    <span style="color: #8D8D8D">订单金额:</span><br>
                                                    <span style="font-size: 16px">
                                                        <?php echo round($info['price']/100, 2) ?> 元
                                                    </span>
                                                </div>
                                            </div>
                                        </div>
                                    </div>

                                </div>
                            </div>
                        </div>

                    </div>


                <div class="layui-row layui-col-space15">
                    <div class="layui-col-md12">
                        <div class="layui-card">
                            <div class="layui-card-header">学员信息</div>
                            <div class="layui-card-body">
                                <div class="layui-row layui-col-space12">
                                    <div class="layui-col-md4">
                                        学员姓名: {$info.CourseStudent.name}
                                    </div>
                                    <div class="layui-col-md4">
                                        联系电话： {$info.CourseStudent.telephone}
                                    </div>
                                    <div class="layui-col-md4">
                                        身份证号： {$info.CourseStudent.id_card}
                                    </div>
                                </div>
                                <div class="layui-row layui-col-space12">
                                    <div class="layui-col-md4">
                                        技术职称: {$info.CourseStudent.title}
                                    </div>
                                    <div class="layui-col-md4">
                                        拟评职称： {$info.CourseStudent.proposed_title}
                                    </div>
                                    <div class="layui-col-md4">
                                        单位名称： {$info.CourseStudent.company_name}
                                    </div>
                                </div>

                            </div>
                        </div>
                    </div>

                </div>
                <table class="layui-table" lay-size="sm">
                    <thead>
                    <tr>
                        <th> 类别</th>
                        <th>年份</th>
                        <th>科目类别</th>
                        <th>课时</th>
                        <th>价格</th>
                    </tr>
                    </thead>
                    <tbody>
                    {foreach name='info.CourseChild' item='table'}
                    <tr>
                        <td>{$table.Course.CourseType.name}</td>
                        <td>{$table.Course.year}</td>
                        <td>{$table.Course.class_type}</td>
                        <td>{$table.Course.hour}</td>
                        <td>{$table.Course.price}</td>
                    </tr>
                    {/foreach}
                    </tbody>


                </table>
                <div class="layui-form-item layui-layout-admin " style="width: 100%">
                    <div class="layui-input-block">
                        <div class="layui-footer" style="left: 0px;text-align: center;">
                            <button class="layui-btn" lay-submit="" lay-filter="add">{:__('Submit')}</button>
                            <button type="reset" class="layui-btn layui-btn-primary">{:__('Reset')}</button>
                        </div>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>

<script type="text/html" id="operationTpl">
  <a href="javascript:;" class="layui-btn layui-btn-danger layui-btn-xs" data-title="删除" lay-event="del"><i class="layui-icon "></i></a>
</script>
<script>
    layui.use(['element', 'table', 'form', 'jquery','lucky','upload','laydate'], function () {
        var element = layui.element;
        var table = layui.table;
        var form = layui.form;
        var $ = layui.jquery;
        var lucky=layui.lucky;
    })
</script>

{/block}

